/*
* 基础率快设表
* */
window.fastRateTable = [{
    name: 6,
    value: [
        { name: '00', value: 0.1 }, { name: '01', value: 0.1 }, { name: '02', value: 0.2 },
        { name: '03', value: 0.2 }, { name: '04', value: 0.3 }, { name: '05', value: 0.4 },
        { name: '06', value: 0.6 }, { name: '07', value: 0.4 }, { name: '08', value: 0.3 },
        { name: '09', value: 0.3 }, { name: '10', value: 0.2 }, { name: '11', value: 0.2 },
        { name: '12', value: 0.2 }, { name: '13', value: 0.2 }, { name: '14', value: 0.2 },
        { name: '15', value: 0.2 }, { name: '16', value: 0.3 }, { name: '17', value: 0.3 },
        { name: '18', value: 0.3 }, { name: '19', value: 0.3 }, { name: '20', value: 0.4 },
        { name: '21', value: 0.4 }, { name: '22', value: 0.4 }, { name: '23', value: 0.4 }
    ]
}, {
    name: 8,
    value: [
        { name: '00', value: 0.2 },
        { name: '01', value: 0.2 },
        { name: '02', value: 0.2 },
        { name: '03', value: 0.3 },
        { name: '04', value: 0.5 },
        { name: '05', value: 0.6 },
        { name: '06', value: 0.7 },
        { name: '07', value: 0.6 },
        { name: '08', value: 0.4 },
        { name: '09', value: 0.3 },
        { name: '10', value: 0.2 },
        { name: '11', value: 0.2 },
        { name: '12', value: 0.2 },
        { name: '13', value: 0.2 },
        { name: '14', value: 0.2 },
        { name: '15', value: 0.3 },
        { name: '16', value: 0.4 },
        { name: '17', value: 0.5 },
        { name: '18', value: 0.5 },
        { name: '19', value: 0.3 },
        { name: '20', value: 0.3 },
        { name: '21', value: 0.2 },
        { name: '22', value: 0.2 },
        { name: '23', value: 0.2 }
    ]
}, {
    name: 10,
    value: [
        { name: '00', value: 0.2 },
        { name: '01', value: 0.2 },
        { name: '02', value: 0.3 },
        { name: '03', value: 0.4 },
        { name: '04', value: 0.5 },
        { name: '05', value: 0.7 },
        { name: '06', value: 0.8 },
        { name: '07', value: 0.7 },
        { name: '08', value: 0.5 },
        { name: '09', value: 0.3 },
        { name: '10', value: 0.3 },
        { name: '11', value: 0.3 },

        { name: '12', value: 0.3 },
        { name: '13', value: 0.3 },
        { name: '14', value: 0.3 },
        { name: '15', value: 0.4 },

        { name: '16', value: 0.5 },
        { name: '17', value: 0.6 },
        { name: '18', value: 0.6 },
        { name: '19', value: 0.5 },

        { name: '20', value: 0.4 },
        { name: '21', value: 0.3 },
        { name: '22', value: 0.3 },
        { name: '23', value: 0.3 }
    ]
}, {
    name: 12,
    value: [
        { name: '00', value: 0.2 },
        { name: '01', value: 0.2 },
        { name: '02', value: 0.3 },
        { name: '03', value: 0.5 },
        { name: '04', value: 0.7 },
        { name: '05', value: 0.9 },
        { name: '06', value: 1.0 },
        { name: '07', value: 0.8 },
        { name: '08', value: 0.5 },
        { name: '09', value: 0.4 },
        { name: '10', value: 0.4 },
        { name: '11', value: 0.4 },

        { name: '12', value: 0.4 },
        { name: '13', value: 0.4 },
        { name: '14', value: 0.4 },
        { name: '15', value: 0.4 },

        { name: '16', value: 0.5 },
        { name: '17', value: 0.7 },
        { name: '18', value: 0.7 },
        { name: '19', value: 0.6 },

        { name: '20', value: 0.5 },
        { name: '21', value: 0.4 },
        { name: '22', value: 0.4 },
        { name: '23', value: 0.3 }
    ]
}, {
    name: 14,
    value: [
        { name: '00', value: 0.3 },
        { name: '01', value: 0.3 },
        { name: '02', value: 0.4 },
        { name: '03', value: 0.5 },
        { name: '04', value: 0.6 },
        { name: '05', value: 0.9 },
        { name: '06', value: 1.2 },
        { name: '07', value: 0.9 },
        { name: '08', value: 0.6 },
        { name: '09', value: 0.5 },
        { name: '10', value: 0.5 },
        { name: '11', value: 0.5 },

        { name: '12', value: 0.5 },
        { name: '13', value: 0.5 },
        { name: '14', value: 0.5 },
        { name: '15', value: 0.5 },

        { name: '16', value: 0.7 },
        { name: '17', value: 0.8 },
        { name: '18', value: 0.8 },
        { name: '19', value: 0.6 },

        { name: '20', value: 0.5 },
        { name: '21', value: 0.5 },
        { name: '22', value: 0.5 },
        { name: '23', value: 0.4 }
    ]
}, {
    name: 16,
    value: [
        { name: '00', value: 0.4 },
        { name: '01', value: 0.4 },
        { name: '02', value: 0.5 },
        { name: '03', value: 0.5 },
        { name: '04', value: 0.7 },
        { name: '05', value: 1.1 },
        { name: '06', value: 1.4 },
        { name: '07', value: 1.1 },
        { name: '08', value: 0.8 },
        { name: '09', value: 0.5 },
        { name: '10', value: 0.5 },
        { name: '11', value: 0.5 },

        { name: '12', value: 0.5 },
        { name: '13', value: 0.5 },
        { name: '14', value: 0.5 },
        { name: '15', value: 0.6 },

        { name: '16', value: 0.8 },
        { name: '17', value: 0.9 },
        { name: '18', value: 0.9 },
        { name: '19', value: 0.8 },

        { name: '20', value: 0.6 },
        { name: '21', value: 0.5 },
        { name: '22', value: 0.5 },
        { name: '23', value: 0.5 }
    ]
}, {
    name: 18,
    value: [
        { name: '00', value: 0.4 },
        { name: '01', value: 0.4 },
        { name: '02', value: 0.5 },
        { name: '03', value: 0.6 },
        { name: '04', value: 0.8 },
        { name: '05', value: 1.3 },
        { name: '06', value: 1.5 },
        { name: '07', value: 1.2 },
        { name: '08', value: 0.9 },
        { name: '09', value: 0.6 },
        { name: '10', value: 0.6 },
        { name: '11', value: 0.6 },

        { name: '12', value: 0.6 },
        { name: '13', value: 0.6 },
        { name: '14', value: 0.6 },
        { name: '15', value: 0.7 },

        { name: '16', value: 0.9 },
        { name: '17', value: 1.0 },
        { name: '18', value: 1.0 },
        { name: '19', value: 0.8 },

        { name: '20', value: 0.7 },
        { name: '21', value: 0.6 },
        { name: '22', value: 0.6 },
        { name: '23', value: 0.5 }
    ]
}, {
    name: 20,
    value: [
        { name: '00', value: 0.4 },
        { name: '01', value: 0.4 },
        { name: '02', value: 0.6 },
        { name: '03', value: 0.7 },
        { name: '04', value: 0.9 },
        { name: '05', value: 1.4 },
        { name: '06', value: 1.6 },
        { name: '07', value: 1.2 },
        { name: '08', value: 1.0 },
        { name: '09', value: 0.7 },
        { name: '10', value: 0.7 },
        { name: '11', value: 0.7 },

        { name: '12', value: 0.7 },
        { name: '13', value: 0.7 },
        { name: '14', value: 0.7 },
        { name: '15', value: 0.8 },

        { name: '16', value: 1.0 },
        { name: '17', value: 1.1 },
        { name: '18', value: 1.1 },
        { name: '19', value: 0.9 },

        { name: '20', value: 0.9 },
        { name: '21', value: 0.8 },
        { name: '22', value: 0.7 },
        { name: '23', value: 0.7 }
    ]
}, {
    name: 22,
    value: [
        { name: '00', value: 0.5 },
        { name: '01', value: 0.5 },
        { name: '02', value: 0.6 },
        { name: '03', value: 0.8 },
        { name: '04', value: 1.0 },
        { name: '05', value: 1.6 },
        { name: '06', value: 1.8 },
        { name: '07', value: 1.5 },
        { name: '08', value: 1.1 },
        { name: '09', value: 0.8 },
        { name: '10', value: 0.7 },
        { name: '11', value: 0.7 },

        { name: '12', value: 0.7 },
        { name: '13', value: 0.7 },
        { name: '14', value: 0.8 },
        { name: '15', value: 0.9 },

        { name: '16', value: 1.1 },
        { name: '17', value: 1.2 },
        { name: '18', value: 1.2 },
        { name: '19', value: 1.0 },

        { name: '20', value: 0.8 },
        { name: '21', value: 0.7 },
        { name: '22', value: 0.7 },
        { name: '23', value: 0.6 }
    ]
}, {
    name: 24,
    value: [
        { name: '00', value: 0.6 },
        { name: '01', value: 0.5 },
        { name: '02', value: 0.7 },
        { name: '03', value: 0.8 },
        { name: '04', value: 1.1 },
        { name: '05', value: 1.7 },
        { name: '06', value: 2.0 },
        { name: '07', value: 1.6 },
        { name: '08', value: 1.2 },
        { name: '09', value: 0.9 },
        { name: '10', value: 0.8 },
        { name: '11', value: 0.8 },

        { name: '12', value: 0.8 },
        { name: '13', value: 0.8 },
        { name: '14', value: 0.8 },
        { name: '15', value: 1.0 },

        { name: '16', value: 1.2 },
        { name: '17', value: 1.3 },
        { name: '18', value: 1.3 },
        { name: '19', value: 1.0 },

        { name: '20', value: 0.9 },
        { name: '21', value: 0.8 },
        { name: '22', value: 0.8 },
        { name: '23', value: 0.7 }
    ]
}, {
    name: 26,
    value: [
        { name: '00', value: 0.6 },
        { name: '01', value: 0.6 },
        { name: '02', value: 0.7 },
        { name: '03', value: 0.9 },
        { name: '04', value: 1.1 },
        { name: '05', value: 1.8 },
        { name: '06', value: 2.1 },
        { name: '07', value: 1.7 },
        { name: '08', value: 1.3 },
        { name: '09', value: 1.0 },
        { name: '10', value: 0.9 },
        { name: '11', value: 0.9 },

        { name: '12', value: 0.9 },
        { name: '13', value: 0.9 },
        { name: '14', value: 1.0 },
        { name: '15', value: 1.1 },

        { name: '16', value: 1.3 },
        { name: '17', value: 1.4 },
        { name: '18', value: 1.4 },
        { name: '19', value: 1.1 },

        { name: '20', value: 1.0 },
        { name: '21', value: 0.8 },
        { name: '22', value: 0.8 },
        { name: '23', value: 0.7 }
    ]
}, {
    name: 28,
    value: [
        { name: '00', value: 0.6 },
        { name: '01', value: 0.7 },
        { name: '02', value: 0.8 },
        { name: '03', value: 0.9 },
        { name: '04', value: 1.2 },
        { name: '05', value: 1.9 },
        { name: '06', value: 2.3 },
        { name: '07', value: 1.8 },
        { name: '08', value: 1.4 },
        { name: '09', value: 1.0 },
        { name: '10', value: 1.0 },
        { name: '11', value: 1.0 },

        { name: '12', value: 1.0 },
        { name: '13', value: 1.0 },
        { name: '14', value: 1.0 },
        { name: '15', value: 1.1 },

        { name: '16', value: 1.4 },
        { name: '17', value: 1.5 },
        { name: '18', value: 1.5 },
        { name: '19', value: 1.2 },

        { name: '20', value: 1.1 },
        { name: '21', value: 0.9 },
        { name: '22', value: 0.9 },
        { name: '23', value: 0.8 }
    ]
}, {
    name: 30,
    value: [
        { name: '00', value: 0.7 },
        { name: '01', value: 0.7 },
        { name: '02', value: 0.8 },
        { name: '03', value: 1.0 },
        { name: '04', value: 1.4 },
        { name: '05', value: 2.1 },
        { name: '06', value: 2.5 },
        { name: '07', value: 2.0 },
        { name: '08', value: 1.5 },
        { name: '09', value: 1.0 },
        { name: '10', value: 1.0 },
        { name: '11', value: 1.0 },

        { name: '12', value: 1.0 },
        { name: '13', value: 1.0 },
        { name: '14', value: 1.0 },
        { name: '15', value: 1.2 },

        { name: '16', value: 1.5 },
        { name: '17', value: 1.6 },
        { name: '18', value: 1.6 },
        { name: '19', value: 1.3 },

        { name: '20', value: 1.2 },
        { name: '21', value: 1.0 },
        { name: '22', value: 1.0 },
        { name: '23', value: 0.9 }
    ]
}, {
    name: 32,
    value: [
        { name: '00', value: 0.7 },
        { name: '01', value: 0.7 },
        { name: '02', value: 0.9 },
        { name: '03', value: 1.1 },
        { name: '04', value: 1.4 },
        { name: '05', value: 2.2 },
        { name: '06', value: 2.6 },
        { name: '07', value: 2.1 },
        { name: '08', value: 1.6 },
        { name: '09', value: 1.1 },
        { name: '10', value: 1.1 },
        { name: '11', value: 1.1 },

        { name: '12', value: 1.1 },
        { name: '13', value: 1.1 },
        { name: '14', value: 1.1 },
        { name: '15', value: 1.3 },

        { name: '16', value: 1.6 },
        { name: '17', value: 1.7 },
        { name: '18', value: 1.7 },
        { name: '19', value: 1.4 },

        { name: '20', value: 1.3 },
        { name: '21', value: 1.1 },
        { name: '22', value: 1.1 },
        { name: '23', value: 0.9 }
    ]
}, {
    name: 34,
    value: [
        { name: '00', value: 0.8 },
        { name: '01', value: 0.8 },
        { name: '02', value: 1.0 },
        { name: '03', value: 1.2 },
        { name: '04', value: 1.5 },
        { name: '05', value: 2.5 },
        { name: '06', value: 2.8 },
        { name: '07', value: 2.3 },
        { name: '08', value: 1.7 },
        { name: '09', value: 1.1 },
        { name: '10', value: 1.1 },
        { name: '11', value: 1.1 },

        { name: '12', value: 1.1 },
        { name: '13', value: 1.1 },
        { name: '14', value: 1.1 },
        { name: '15', value: 1.3 },

        { name: '16', value: 1.7 },
        { name: '17', value: 1.9 },
        { name: '18', value: 1.9 },
        { name: '19', value: 1.5 },

        { name: '20', value: 1.4 },
        { name: '21', value: 1.1 },
        { name: '22', value: 1.1 },
        { name: '23', value: 0.9 }
    ]
}, {
    name: 36,
    value: [
        { name: '00', value: 0.8 },
        { name: '01', value: 0.8 },
        { name: '02', value: 1.0 },
        { name: '03', value: 1.2 },
        { name: '04', value: 1.6 },
        { name: '05', value: 2.6 },
        { name: '06', value: 3.0 },
        { name: '07', value: 2.4 },
        { name: '08', value: 1.8 },
        { name: '09', value: 1.2 },
        { name: '10', value: 1.2 },
        { name: '11', value: 1.2 },

        { name: '12', value: 1.2 },
        { name: '13', value: 1.2 },
        { name: '14', value: 1.2 },
        { name: '15', value: 1.4 },

        { name: '16', value: 1.8 },
        { name: '17', value: 2.0 },
        { name: '18', value: 2.0 },
        { name: '19', value: 1.6 },

        { name: '20', value: 1.4 },
        { name: '21', value: 1.2 },
        { name: '22', value: 1.2 },
        { name: '23', value: 1.0 }
    ]
},
{
    name: 38,
    value: [
        { name: '00', value: 0.8 },
        { name: '01', value: 0.8 },
        { name: '02', value: 1.1 },
        { name: '03', value: 1.3 },

        { name: '04', value: 1.7 },
        { name: '05', value: 2.7 },
        { name: '06', value: 3.2 },
        { name: '07', value: 2.5 },

        { name: '08', value: 1.8 },
        { name: '09', value: 1.3 },
        { name: '10', value: 1.3 },
        { name: '11', value: 1.3 },

        { name: '12', value: 1.3 },
        { name: '13', value: 1.3 },
        { name: '14', value: 1.3 },
        { name: '15', value: 1.5 },

        { name: '16', value: 1.9 },
        { name: '17', value: 2.1 },
        { name: '18', value: 2.1 },
        { name: '19', value: 1.7 },

        { name: '20', value: 1.5 },
        { name: '21', value: 1.3 },
        { name: '22', value: 1.3 },
        { name: '23', value: 1.0 }
    ]
},
{
    name: 40,
    value: [
        { name: '00', value: 0.9 },
        { name: '01', value: 0.9 },
        { name: '02', value: 1.2 },
        { name: '03', value: 1.4 },
        { name: '04', value: 1.8 },
        { name: '05', value: 2.9 },
        { name: '06', value: 3.3 },
        { name: '07', value: 2.7 },
        { name: '08', value: 2.0 },
        { name: '09', value: 1.3 },
        { name: '10', value: 1.3 },
        { name: '11', value: 1.3 },

        { name: '12', value: 1.3 },
        { name: '13', value: 1.3 },
        { name: '14', value: 1.3 },
        { name: '15', value: 1.6 },

        { name: '16', value: 2.0 },
        { name: '17', value: 2.2 },
        { name: '18', value: 2.2 },
        { name: '19', value: 1.8 },
        { name: '20', value: 1.6 },
        { name: '21', value: 1.3 },
        { name: '22', value: 1.3 },
        { name: '23', value: 1.1 }
    ]
},
]


window.rate = {
    basicRate: window.fastRateTable[0], // 基础率设置，默认为第一个
    records: [{
        name: 34,
        type: '速效',
        createTime: new Date('2019-03-10 10:00:00'),
        value: [
            { name: '00', value: 0.8 },
            { name: '01', value: 0.8 },
            { name: '02', value: 1.0 },
            { name: '03', value: 1.2 },
            { name: '04', value: 1.5 },
            { name: '05', value: 2.5 },
            { name: '06', value: 2.8 },
            { name: '07', value: 2.3 },
            { name: '08', value: 1.7 },
            { name: '09', value: 1.1 },
            { name: '10', value: 1.1 },
            { name: '11', value: 1.1 },

            { name: '12', value: 1.1 },
            { name: '13', value: 1.1 },
            { name: '14', value: 1.1 },
            { name: '15', value: 1.3 },

            { name: '16', value: 1.7 },
            { name: '17', value: 1.9 },
            { name: '18', value: 1.9 },
            { name: '19', value: 1.5 },

            { name: '20', value: 1.4 },
            { name: '21', value: 1.1 },
            { name: '22', value: 1.1 },
            { name: '23', value: 0.9 }
        ]
    }],
    planA: {
        name: 'A方案',
        value: [
            { name: '00', value: 0.2 },
            { name: '01', value: 0.2 },
            { name: '02', value: 0.2 },
            { name: '03', value: 0.3 },
            { name: '04', value: 0.5 },
            { name: '05', value: 0.6 },
            { name: '06', value: 0.7 },
            { name: '07', value: 0.6 },
            { name: '08', value: 0.4 },
            { name: '09', value: 0.3 },
            { name: '10', value: 0.2 },
            { name: '11', value: 0.2 },
            { name: '12', value: 0.2 },
            { name: '13', value: 0.2 },
            { name: '14', value: 0.2 },
            { name: '15', value: 0.3 },
            { name: '16', value: 0.4 },
            { name: '17', value: 0.5 },
            { name: '18', value: 0.5 },
            { name: '19', value: 0.3 },
            { name: '20', value: 0.3 },
            { name: '21', value: 0.2 },
            { name: '22', value: 0.2 },
            { name: '23', value: 0.2 }
        ]
    },
    planB: {
        name: 'B方案',
        value: [
            { name: '00', value: 0.5 },
            { name: '01', value: 0.5 },
            { name: '02', value: 0.6 },
            { name: '03', value: 0.8 },
            { name: '04', value: 1.0 },
            { name: '05', value: 1.6 },
            { name: '06', value: 1.8 },
            { name: '07', value: 1.5 },
            { name: '08', value: 1.1 },
            { name: '09', value: 0.8 },
            { name: '10', value: 0.7 },
            { name: '11', value: 0.7 },

            { name: '12', value: 0.7 },
            { name: '13', value: 0.7 },
            { name: '14', value: 0.8 },
            { name: '15', value: 0.9 },

            { name: '16', value: 1.1 },
            { name: '17', value: 1.2 },
            { name: '18', value: 1.2 },
            { name: '19', value: 1.0 },

            { name: '20', value: 0.8 },
            { name: '21', value: 0.7 },
            { name: '22', value: 0.7 },
            { name: '23', value: 0.6 }
        ]
    },
    planC: {
        name: 'C方案',
        value: [
            { name: '00', value: 0.9 },
            { name: '01', value: 0.9 },
            { name: '02', value: 1.2 },
            { name: '03', value: 1.4 },
            { name: '04', value: 1.8 },
            { name: '05', value: 2.9 },
            { name: '06', value: 3.3 },
            { name: '07', value: 2.7 },
            { name: '08', value: 2.0 },
            { name: '09', value: 1.3 },
            { name: '10', value: 1.3 },
            { name: '11', value: 1.3 },

            { name: '12', value: 1.3 },
            { name: '13', value: 1.3 },
            { name: '14', value: 1.3 },
            { name: '15', value: 1.6 },

            { name: '16', value: 2.0 },
            { name: '17', value: 2.2 },
            { name: '18', value: 2.2 },
            { name: '19', value: 1.8 },
            { name: '20', value: 1.6 },
            { name: '21', value: 1.3 },
            { name: '22', value: 1.3 },
            { name: '23', value: 1.1 }
        ]
    },
    // 临时基础率
    temp:{
        startAt: null,
        isOn: false, // 是否执行
        percentage: 100,
        deviation: 0, // 偏差
        value:{name: 'xx%', value: 'percentage'},
        stillMinutes: 0, // 持续时间
    }
}